<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: util/detail/util_fwd.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_23ec12649285f9fabf3a6b7380226c28.html">util</a></li><li class="navelem"><a class="el" href="dir_076e4717ccf31a1bda117b982e8d440f.html">detail</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">util_fwd.hpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="string__view_8hpp_source.html">flow/util/string_view.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="common_8hpp_source.html">flow/common.hpp</a>&quot;</code><br />
<code>#include &lt;boost/shared_ptr.hpp&gt;</code><br />
</div>
<p><a href="detail_2util__fwd_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceflow"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow.html">flow</a></td></tr>
<tr class="memdesc:namespaceflow"><td class="mdescLeft">&#160;</td><td class="mdescRight">Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceflow_1_1util"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1util.html">flow::util</a></td></tr>
<tr class="memdesc:namespaceflow_1_1util"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flow module containing miscellaneous general-use facilities that don't fit into any other Flow module. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceflow_1_1util_1_1bind__ns"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1util_1_1bind__ns.html">flow::util::bind_ns</a></td></tr>
<tr class="memdesc:namespaceflow_1_1util_1_1bind__ns"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hack namespace alias to enable use of <code>bind</code> and related utilities like <code>cref</code> in the face of strange observed compiler behavior. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa60d3ba517b5f5cf408faa92d269256a"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period &gt; </td></tr>
<tr class="memitem:aa60d3ba517b5f5cf408faa92d269256a"><td class="memTemplItemLeft" align="right" valign="top">Fine_duration&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1util.html#aa60d3ba517b5f5cf408faa92d269256a">flow::util::chrono_duration_to_fine_duration</a> (const boost::chrono::duration&lt; Rep, Period &gt; &amp;dur)</td></tr>
<tr class="memdesc:aa60d3ba517b5f5cf408faa92d269256a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper that takes a non-negative duration of arbitrary precision/period and converts it to <a class="el" href="namespaceflow.html#a48799f1263cdeedec125be51a3db2b79" title="A high-res time duration as computed from two Fine_time_pts.">Fine_duration</a>, rounding up.  <a href="namespaceflow_1_1util.html#aa60d3ba517b5f5cf408faa92d269256a">More...</a><br /></td></tr>
<tr class="separator:aa60d3ba517b5f5cf408faa92d269256a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5488415feb5570a6551892a7bdfeeec4"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period &gt; </td></tr>
<tr class="memitem:a5488415feb5570a6551892a7bdfeeec4"><td class="memTemplItemLeft" align="right" valign="top">Fine_time_pt&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1util.html#a5488415feb5570a6551892a7bdfeeec4">flow::util::chrono_duration_from_now_to_fine_time_pt</a> (const boost::chrono::duration&lt; Rep, Period &gt; &amp;dur)</td></tr>
<tr class="memdesc:a5488415feb5570a6551892a7bdfeeec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper that takes a non-negative duration of arbitrary precision/period and converts it to <a class="el" href="namespaceflow.html#a48799f1263cdeedec125be51a3db2b79" title="A high-res time duration as computed from two Fine_time_pts.">Fine_duration</a>, rounding up; then adds it to <code>Fine_clock::now()</code> and returns the result.  <a href="namespaceflow_1_1util.html#a5488415feb5570a6551892a7bdfeeec4">More...</a><br /></td></tr>
<tr class="separator:a5488415feb5570a6551892a7bdfeeec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13c3363efdf0d04b04b12ca7487d368c"><td class="memItemLeft" align="right" valign="top">constexpr String_view&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1util.html#a13c3363efdf0d04b04b12ca7487d368c">flow::util::get_last_path_segment</a> (String_view path)</td></tr>
<tr class="memdesc:a13c3363efdf0d04b04b12ca7487d368c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper for <a class="el" href="util__fwd_8hpp.html#a4b8c54b789ea3bbc1dedebbff084625c" title="Expands to an ostream fragment X (suitable for, for example: std::cout &lt;&lt; X &lt;&lt; &quot;: Hi!...">FLOW_UTIL_WHERE_AM_I()</a> that, given a pointer/length of a string in memory containing a path, returns a pointer/length into that same buffer that comprises the postfix just past the last directory separator or (if none exists) to all of it.  <a href="namespaceflow_1_1util.html#a13c3363efdf0d04b04b12ca7487d368c">More...</a><br /></td></tr>
<tr class="separator:a13c3363efdf0d04b04b12ca7487d368c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a33fa903d51cbe124781544eaf0c4bc"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1util.html#a3a33fa903d51cbe124781544eaf0c4bc">flow::util::get_where_am_i_str</a> (String_view file, String_view function, unsigned int line)</td></tr>
<tr class="memdesc:a3a33fa903d51cbe124781544eaf0c4bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper for <a class="el" href="util__fwd_8hpp.html#a4b8c54b789ea3bbc1dedebbff084625c" title="Expands to an ostream fragment X (suitable for, for example: std::cout &lt;&lt; X &lt;&lt; &quot;: Hi!...">FLOW_UTIL_WHERE_AM_I()</a>, etc., that, given values for source code file name, function, and line number, returns an <code>std::string</code> equal to what <a class="el" href="util__fwd_8hpp.html#a4b8c54b789ea3bbc1dedebbff084625c" title="Expands to an ostream fragment X (suitable for, for example: std::cout &lt;&lt; X &lt;&lt; &quot;: Hi!...">FLOW_UTIL_WHERE_AM_I()</a> would place into an <code>ostream</code>.  <a href="namespaceflow_1_1util.html#a3a33fa903d51cbe124781544eaf0c4bc">More...</a><br /></td></tr>
<tr class="separator:a3a33fa903d51cbe124781544eaf0c4bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:35 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
